package com.arpa.wms.domain.dto;

import com.arpa.wms.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author: Allen chen
 * @Date 2020/9/17
 * @Description:
 */

@Data
@ApiModel(value="InventoryRecordDTO对象", description="库存记录")
public class InventoryRecordDTO extends BasicEntity implements Serializable {

    @ApiModelProperty(value = "数据标识")
    private String code;

    @ApiModelProperty(value = "货主code")
    private String shipmentCode;

    @ApiModelProperty(value = "所属机构Code")
    private String groupCode;

    @ApiModelProperty(value = "登录仓库授权该账号的货主集合")
    private List<String> shipmentCodes;

    @ApiModelProperty(value = "授权该账号的仓库集合")
    private List<String> warehouseCodes;

    @ApiModelProperty(value = "货主名称")
    private String shipmentName;

    @ApiModelProperty(value = "仓库code")
    private String warehouseCode;

    @ApiModelProperty(value = "仓库名称 ")
    private String warehouseName;

    @ApiModelProperty(value = "库区code")
    private String warehouseSpaceCode;

    @ApiModelProperty(value = "库区名称")
    private String warehouseSpaceName;

    @ApiModelProperty(value = "库位code")
    private String location;

    @ApiModelProperty(value = "库位名称")
    private String locationName;

    @ApiModelProperty(value = "库存code")
    private String inventoryCode;

    @ApiModelProperty(value = "商品code")
    private String goodsCode;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "单位")
    private String goodsUnit;

    @ApiModelProperty(value = "单位名称")
    private String unitName;

    @ApiModelProperty(value = "商品编码")
    private String goodCode;

    @ApiModelProperty(value = "商品规格")
    private String spec;

    @ApiModelProperty(value = "锁定状态")
    private String isLock;

    @ApiModelProperty(value = "保质期（天）")
    private BigDecimal expirationQuantity;

    @ApiModelProperty(value = "保质期（天）下限")
    private BigDecimal expirationQuantityStart;

    @ApiModelProperty(value = "保质期（天）上限")
    private BigDecimal expirationQuantityEnd;

    @ApiModelProperty(value = "生产日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtManufacture;

    @ApiModelProperty(value = "生产日期开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtManufactureStart;

    @ApiModelProperty(value = "生产日期结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtManufactureEnd;

    @ApiModelProperty(value = "过期日期")
    private LocalDateTime gmtExpire;

    @ApiModelProperty(value = "过期日期开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtExpireStart;

    @ApiModelProperty(value = "过期日期结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtExpireEnd;

    @ApiModelProperty(value = "存货日期")
    private LocalDateTime gmtStock;

    @ApiModelProperty(value = "存货日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtStockStart;

    @ApiModelProperty(value = "存货日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtStockEnd;

    @ApiModelProperty(value = "批次号")
    private String lot;

    @ApiModelProperty(value = "来源code")
    private String sourceCode;

    @ApiModelProperty(value = "操作类型")
    private String type;

    @ApiModelProperty(value = "操作数量")
    private BigDecimal num;

    @ApiModelProperty(value = "操作数量下限")
    private BigDecimal numStart;

    @ApiModelProperty(value = "操作数量上线")
    private BigDecimal numEnd;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "创建人名称")
    private String createdName;

    @ApiModelProperty(value = "修改人名称")
    private String modifiedName;

    @ApiModelProperty(value = "容器号")
    private String containerBarCode;

    @ApiModelProperty(value = "收货批次")
    private String receiveLot;

    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;
}
